<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    
<% String cpath = request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>조립PC의 대명사- PC Master~!~!</title>
<script>

//숫자만 입력 
function numCheck(){
	if(event.keyCode>=48 && event.keyCode<=57){
		return true;
	}
	else{event.returnValue=false;}
}

function changeCount(){
	if(document.getElementById("goods_count2").value=="default"){
		document.getElementById("goods_count").value = "";
		document.getElementById("goods_count").readOnly=false;
	}
	else{
		document.getElementById("goods_count").readOnly=true;
		document.getElementById("goods_count").value=document.getElementById("goods_count2").value;
	}
	
/* 	f.GOODS_COUNT.value = $("GOODS_COUNT2").val();
	f.submit; */
}

</script>

</head>
<body>


<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;z-index:1 ">
<%@ include file="../loginPanel.jsp" %>
</div>

<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;">
<%@ include file="../top.jsp" %>
</div>

<div style="position:absolute; left:50%; top:510px; width:1200px; height:80px; margin-left:-600px;">
<table width="200px" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td>
		<img src="/web/resources/images/main/main-btn01-on.jpg" style="width:200px; height:155px; cursor:pointer " onclick="location.href='/web/ssd'"/>
	</td>
</tr>
</table>
</div>

<div style="position:absolute; left:50%; top:160px; width:1000px; height:80px; margin-left:-400px;">
<table height="40px" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td align="left" valign="bottom" width="1000px" style="padding-left:10px ">
			<img src="/web/resources/images/main/admin_goods_insert.jpg" width="230px" height="31px" border="0"/>
		</td>
	</tr>
</table>

<hr width="1000px" size="2" align="center" color="black" noshade >

<form name="insert" action="<%=cpath %>/goods/insert" method="POST" enctype="multipart/form-data">
<table width="500px" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:10px;">
    <tr>
        <td style="border:1px solid #e4ebf0;padding:20px;" bgcolor="#f8f9fb">
<table width="400px" border="0" cellpadding="0" cellspacing="0" style="margin-top:10px; margin-bottom:20px;" align="center">
    <tr height="30px">
    	<td align="center" width="100px">
    		<strong style="font-size:11pt;font-weight:bold; ">상품코드</strong>
		</td>
		<td style="padding-left:10px ">
			<input type="text" size="50" maxlength="50" style="height:20px; line-height:20px" name="goods_code" />
		</td>
    </tr>
   	<tr height="30px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; height:20px; line-height:20px; ">상 품 명</Strong>
		</td>
		<td style="padding-left:10px ">
			<input type="text" size="50" style="height:20px; line-height:20px " maxlength="50" name="goods_name" />
		</td>
    </tr>
    <tr height="30px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">카테고리</strong>
		</td>
		<td style="padding-left:10px ">
			<input type="text" size="50" style="height:20px; line-height:20px " maxlength="50" name="goods_category" />
		</td>		
    </tr>   
    <tr height="30px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">상품가격</strong>
		</td>
		<td style="padding-left:10px ">
			<input type="text" maxlength="20" name="goods_cost" onkeypress="numCheck()" 
				style="ime-mode:disabled; height:20px; line-height:20px "/> 
				<Strong style="font-family:굴림;font-size:10pt">원</Strong>
		</td>		
    </tr>    
    <tr height="30px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold;text-align:center  ">상품수량</strong>
		</td>
		<td style="padding-left:10px ">
			<input type="text" name="goods_count" id="goods_count" maxlength="4" onkeypress="numCheck()"
				style=" width:40px; font-size: 10pt; ime-mode:disabled; height:20px; line-height:20px "/>
				<strong style="font-family:굴림 ; font-size:10pt;font-weight:bold;  ">&nbsp;개&nbsp;&nbsp;</strong>
				<select id="goods_count2" name="goods_count2" onchange="changeCount()" 
					style="width:110px; height:25px; font-family:굴림; font-size: 10pt; ">
					<option value="default">==직접입력==</option>
				<c:forEach begin="1" end="100" var="n">
					<option value="${n }" >&nbsp;&nbsp;&nbsp;&nbsp;${n }개 </option>
				</c:forEach>											
				</select> <Strong style="font-family:굴림;font-size:10pt">(숫자만 입력 가능)</Strong>
		</td>		
    </tr>
    <tr height="30px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">상품정보</strong>
		</td>
		<td style="padding-left:10px ">
			<textarea cols="58" rows="20" name="goods_information" style="font-family:굴림;font-size:10pt;"></textarea>
		</td>		
    </tr>
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">Main-Image</strong>
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>
		</td>		
    </tr>
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">Detail-Image</strong>
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>		
		</td>		
    </tr>
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">Text-Image</strong>
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>		
		</td>		
    </tr>
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">PC_Spec</strong>			
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>		
		</td>		
    </tr>
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">CPU</strong>			
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>		
		</td>		
    </tr>
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">MainBoard</strong>			
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>		
		</td>		
    </tr>   
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">Memory</strong>			
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>		
		</td>		
    </tr>  
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">GraphicCard</strong>			
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>		
		</td>		
    </tr>  
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">HardDisk</strong>			
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>		
		</td>		
    </tr>  
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">PowerSupply</strong>			
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>		
		</td>		
    </tr>      
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">LanCard</strong>			
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>		
		</td>		
    </tr>    
    <tr height="40px">
		<td align="center" >
			<strong style="font-size:11pt;font-weight:bold; ">SoundCard</strong>			
		</td>
		<td style="padding-left:10px ">
			<input type="file" name="file" size="50"/>		
		</td>		
    </tr>                                
    <tr height="30px">
    	<td colspan="2" align="center">
    		<input type="submit" value="등록" />
    		<input type="button" value="취소" />
    	</td>
    </tr>

</table>
</td>
</tr>
</table>
</form>
</div>

<div style="position:absolute; left:0; top:1350px; width:100%; height:80px; ">
<%@ include file="../bottom.jsp"%>
</div>

</body>
</html>